<?php
if(isset($_SESSION['QuyenHan']) && $_SESSION['QuyenHan'] == 1)
{
	if(isset($_GET['id']))
	$MaNguoiDung = $_GET['id'];
	$nguoidung = new nguoidungbs();
	$nguoidung->MaNguoiDung = $MaNguoiDung;
	$danhsach = $nguoidung->GetList();
?>
<div class="form">
<h3>Chi tiết người dùng </h3>
<table class = "table table-bordered">
	<thead>
	<tr>
		
		<tr>
        	<td width="150px">
                     <span> <label>Họ và tên: </label></span>      
            </td>
            <td>
                    <span> <?php echo $danhsach[0]['TenNguoiDung']?> </span>
            </td>
        </tr>
		<tr>
        	<td width="150px">
                     <span> <label>Tên đăng nhập: </label></span>      
            </td>
            <td>
                    <span> <?php echo $danhsach[0]['TenDangNhap']?> </span>
            </td>
        </tr>
		<tr>
        	<td width="150px">
                     <span> <label>Địa chỉ: </label></span>      
            </td>
            <td>
                    <span> <?php echo $danhsach[0]['diaChi'] ?> </span>
            </td>
        </tr>
		<tr>
        	<td width="150px">
                     <span> <label>Email: </label></span>      
            </td>
            <td>
                    <span> <?php echo $danhsach[0]['Email']?> </span>
            </td>
        </tr>
		<tr>
        	<td width="150px">
                     <span> <label>Điện thoại: </label></span>      
            </td>
            <td>
                    <span> <?php echo $danhsach[0]['DienThoai']?> </span>
            </td>
        </tr>
		<tr>
        	<td width="150px">
                     <span> <label>Chức vụ: </label></span>      
            </td>
            <td>
                    <span> <?php echo $danhsach[0]['TenChucVu']?> </span>
            </td>
        </tr>
		<tr>
        	<td width="150px">
                     <span> <label>Phòng ban: </label></span>      
            </td>
            <td>
                    <span> <?php echo $danhsach[0]['TenPhongBan']?> </span>
            </td>
        </tr>
	</tr>
    </thead>
    
</table>

<a href = "nguoidung">Danh sách</a>
</div>
<?php
}else
{
	ThongBaoLoi("Vui lòng đăng nhập !");
}
?>